﻿<%@ Page Title="ScrumPeak.com" Language="C#" MasterPageFile="~/Views/Shared/Site.Master"
  AutoEventWireup="true" Inherits="MvcContrib.FluentHtml.ModelViewPage<IList<User>>" %>

<%@ Import Namespace="Peak.ApplicationServices" %>
<%@ Import Namespace="Peak.Web.Controllers" %>
<%@ Import Namespace="Peak.Web.Controllers.HtmlExtentions" %>
<%@ Import Namespace="Peak.Resources" %>
<%@ Import Namespace="Peak.Web.Controllers.Models" %>
<%@ Import Namespace="Peak.Web" %>
<%@ Import Namespace="Peak.Core" %>
<%@ Import Namespace="System.Threading" %>
<asp:Content ContentPlaceHolderID="center" runat="server">
  <div class="page-content">
    <div class="page-title">
      <%= PageTitles.SelectUsers %>
    </div>
    <form method="POST">
    <table class="table">
      <tr>
        <th class="autoWidthColumn">
        </th>
        <th align="left">
          <%= Columns.Name %>
        </th>
      </tr>
      <%
        foreach (User user in Model)
        {%>
      <tr>
        <td>
          <input name="userIds" type="checkbox" value="<%= user.Id %>" />          
        </td>
        <td>
          <%= user.UserName %>          
        </td>
      </tr>
      <%
        }%>
    </table>
    <%= Html.PeakSubmitButton(Buttons.Select) %>
    <%= Html.PeakButton<TeamController>(f=>f.Index(),Buttons.Cancel) %>
    </form>
  </div>
</asp:Content>
